#include<bits/stdc++.h>
using namespace std;
int n,v[100010],a[100010],t=0,d[100010],ans=0;
int read(){
	int r=0,f=1;char ch=getchar();
	while(!isdigit(ch)){if(ch=='-') f=-1;ch=getchar();}
	while(isdigit(ch)){r=(r<<3)+(r<<1)+ch-'0';ch=getchar();}
	return r*f;
}
void w(int x){
	if(x<0){
		putchar('-');
		x=-x;
	}
	if(x>=10){
		w(x/10);
	}
	putchar('0'+x%10);
}
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	n=read();
	for(int i=1;i<=n;i++){
		a[i]=read();
		if(d[a[i]]==0){
			t++;
			v[t]=a[i];
		}
		d[a[i]]++;
	}
	sort(v+1,v+t+1);
	for(int i=1;i<t;i++){
		if(d[v[i]]+ans<=d[v[i+1]]){
			ans=0;
		}
		else{
			ans=d[v[i]]+ans-d[v[i+1]];
		}
	}
	w(d[v[t]]+ans);
	putchar('\n');
	fclose(stdin);
	fclose(stdout);
	return 0;
}
